home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_2.lha / 6_2 / tst1.c < prev    next >
Text File  |  1993-08-08  |  708b  |  31 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <strclass.h>
  6. include <6_2a.c>
  7. ain()
  8.  
  9.    {
  10. include "6_2b.c"
  11.    cout << "x=" << x;
  12.    cout << "x25=" << x25;
  13.    cout << "x69=" << x69;
  14.    cout << "x57=" << x57;
  15.    }
  16.    string w = "abcdefghijklmnop";
  17.    string x = "0123456789wxyz";
  18.    cout << "w=" << w;
  19.    cout << "x=" << x;
  20.    cout << "w(5)=" << w(5);
  21.    string y = w(5,3);
  22.    cout << "y=w(5,3)=" << y;
  23.    cout << "x(-5)=" << x(-5);
  24.    cout << "x(-5,3)=" << x(-5,3);
  25.    cout << "x(0)=" << x(0);
  26.    cout << "x(0,2)=" << x(0,2);
  27.    cout << "x(11,8)=" << x(11,8);
  28.    cout << "x(8,4)=" << x(8,4);
  29.    return 0;
  30.  
  31.